package com.lsege.service.backstage;

import com.lsege.entity.backstage.RepairMan;
import com.lsege.mapper.backstage.RepairManMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lsd on 2017-07-05.
 */
@Service
public class RepairManServiceImpl implements RepairManService{
    @Autowired
    RepairManMapper repairManMapper;
    @Override
    public void addRepairMan(RepairMan repairMan) {
        repairManMapper.addRepairMan(repairMan);
    }

    @Override
    public List<RepairMan> RepairManList() {
        return repairManMapper.RepairManList();
    }

    @Override
    public Long RepairManListNum() {
        return repairManMapper.RepairManListNum();
    }

    @Override
    public void deleteRepairMan(RepairMan repairMan) {
        repairManMapper.deleteRepairMan(repairMan);
    }

    @Override
    public Long getDeleteRepairmanCount(RepairMan repairMan) {
        return repairManMapper.getDeleteRepairmanCount(repairMan);
    }
}
